package com.tensquare.user.dao;

import com.tensquare.user.pojo.Admin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author Alfred
 * @description TODO
 * @date 2021/4/29 10:27
 */
public interface AdminDao extends JpaRepository<Admin,String>, JpaSpecificationExecutor<Admin> {
    /**
     * fetch data by rule id
     *
     * @description  管理员登录密码与校验
     * @param
     * @return
     */
    public Admin findByLoginname(String loginname);
}
